<style>
    .input-box{
        display: inline-block;
        margin-bottom: 10px;
    }
</style>
<div class="weadmin-body">
    <form class="layui-form" data-form='{:request()->url()}'>
        <div>
            {volist name="nodes" id="node"}
            {neq name="node.level" value="3"}
            <div>
                <p style="line-height:45px;font-weight:bolder;">{:$node.level==1?'':'|—'}{$node.title}{:$node.level==1?'模块':''}</p>
            </div>
            {elseif $node.auth === 2/}
            <div class="input-box">
                <input type="checkbox" name="node[]"  value="{$node.id}" title="{$node.title}" lay-skin="primary" {if in_array($node.id, $vo.node)}checked{/if}>
            </div>
            {else/}
            <span style="line-height:45px;">{$node.title}</span>
            <span style="color:#FFB800;line-height:45px;padding-right: 20px">({:$node.auth?"需登录":"无验证"})</span>
            {/neq}
            {/volist}
        </div>

        <div class="layui-form-item layui-col-xs10 layui-col-xs-offset2">
            {if isset($vo.id)}<input type="hidden" name="id" value="{$vo.id}">{/if}
            <button class="layui-btn" lay-submit="">确定</button>
        </div>
    </form>
</div>

<script>
    layui.use('form',function () {
        layui.form.render();
    })
</script>